package cn.edu.uestc.cwdsj.domain;

import java.io.Serializable;

public class XCodeMap implements Serializable{
    private String fieldName;
    private String saCode;
    private String saName;
//    private String f1Code;
//    private String f2Code;
//    private String f3Code;
//    private String f4Code;
//    private String f5Code;
//    private String saDepart;
//    private String saDepar1;


    public String getFieldName() {
        return fieldName;
    }

    public void setFieldName(String fieldName) {
        this.fieldName = fieldName;
    }

    public String getSaCode() {
        return saCode;
    }

    public void setSaCode(String saCode) {
        this.saCode = saCode;
    }

    public String getSaName() {
        return saName;
    }

    public void setSaName(String saName) {
        this.saName = saName;
    }

    public boolean equals(Object object) {
        if (this == object) return true;
        if (object == null || getClass() != object.getClass()) return false;
        if (!super.equals(object)) return false;

        XCodeMap xCodeMap = (XCodeMap) object;

        if (!fieldName.equals(xCodeMap.fieldName)) return false;
        if (!saCode.equals(xCodeMap.saCode)) return false;
        if (!saName.equals(xCodeMap.saName)) return false;

        return true;
    }

    public int hashCode() {
        int result = super.hashCode();
        result = 31 * result + fieldName.hashCode();
        result = 31 * result + saCode.hashCode();
        result = 31 * result + saName.hashCode();
        return result;
    }
}
